package com.shengqin.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrgTypeEnum {
    EDU(1,"区/县教育局"),
    SCHOOL(2,"学校"),
    AGENT(3,"代理商");

    @EnumValue//标记数据库存的值是code
    private final int code;
    @JsonValue //前端展示
    private final String label;

    OrgTypeEnum(int code, String label) {
        this.code = code;
        this.label = label;
    }
}
